<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add</title>
<style type="text/css">
body{
     background-image:url(images/bg.jpg);
     text-align:center;
}
.new{
     margin:0 auto;
      padding:25px;
  border:1px solid #FF0099;
 
  width:760px;
}
</style>
</head>
<body>
 <div class="new" align="center">
  <form action="add.do" method="post">
    <table>
      <tr>
         <td>姓名：</td>
         <td><input type="text" name="name" title="长度为1-32个字符，字母/中文，且只能是一种"
                    value="<%=request.getParameter("name") == null ? "" :request.getParameter("name")%>"/></td>
      </tr>
      <tr>
         <td>电话：</td>
         <td><input type="text" name="phone" title="长度为8或11个字符，且全为数字"
                    value="<%=request.getParameter("phone") == null ? "" :request.getParameter("phone")%>"/></td>
      </tr>
      <tr>
         <td>性别：</td>
         <td><input type="text" name="sex"
                    value="<%=request.getParameter("sex") == null ? "" :request.getParameter("sex")%>"/></td>
      </tr>
      <tr>
         <td>地址：</td>
         <td><input type="text" name="address"
                    value="<%=request.getParameter("address") == null ? "" :request.getParameter("address")%>"/></td>
      </tr>
       <tr>
         <td colspan="2"><input type="submit" value="添加"/></td>
      </tr>
    </table>
  </form>
 </div>
</body>
</html>